home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000381_jaltman2@nyc.rr.com_Fri Sep 3 11:33:49 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
6KB
Path: newsmaster.cc.columbia.edu!newsfeed1.nycmny01.us.to.verio.net!newspeer1.stngva01.us.to.verio.net!verio!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail
Message-ID: <41387281.8030602@nyc.rr.com>
From: Jeffrey Altman <jaltman2@nyc.rr.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How do I script-->interactive "CONNECT"-->script?
References: <10jgmo6sl6bjf0a@corp.supernews.com>
In-Reply-To: <10jgmo6sl6bjf0a@corp.supernews.com>
X-Enigmail-Version: 0.84.2.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 98
Date: Fri, 03 Sep 2004 13:23:21 GMT
NNTP-Posting-Host: 24.193.46.55
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyc.rr.com 1094217801 24.193.46.55 (Fri, 03 Sep 2004 09:23:21 EDT)
NNTP-Posting-Date: Fri, 03 Sep 2004 09:23:21 EDT
Organization: Road Runner - NYC
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15148
Help is built into C-Kermit. Try typing "HELP CONNECT" and you will
get something similar to this. (exact output is platform dependent)
Syntax: CONNECT (or C, or CQ) [ switches ]
Connect to a remote computer via the serial communications device
given in
the most recent SET PORT command, or to the network host named in the
most
recent SET HOST command. Type the escape character followed by C to get
back to the C-Kermit prompt, or followed by ? for a list of CONNECT-mode
escape commands. You can also assign the \Kexit verb to the key or
key-combination of your choice; by default it is assigned to Alt-x.
Other switches include:
/TRIGGER:string
One or more strings to look for that will cause automatic return to
command mode. To specify one string, just put it right after the
colon, e.g. "/TRIGGER:Goodbye". If the string contains any spaces, you
must enclose it in braces, e.g. "/TRIGGER:{READY TO SEND...}". To
specify more than one trigger, use the following format:
/TRIGGER:{{string1}{string2}...{stringn}}
Upon return from CONNECT mode, the variable \v(trigger) is set to the
trigger string, if any, that was actually encountered. This value, like
all other CONNECT switches applies only to the CONNECT command with which
it is given, and overrides (temporarily) any global SET TERMINAL TRIGGER
string that might be in effect.
/IDLE-LIMIT:number
The number of seconds of idle time, after which Kermit returns
automatically to command mode; default 0 (no limit).
/IDLE-INTERVAL:number
The number of seconds of idle time, after which Kermit automatically
transmits the idle string.
/IDLE-STRING:string
The string to transmit whenever the idle interval has passed.
/TIME-LIMIT:number
The maximum number of seconds for which the CONNECT session may last.
The default is 0 (no limit). If a nonzero number is given, Kermit
returns
automatically to command mode after this many seconds.
Your escape character is Ctrl-] (ASCII 29, GS)
Mark J. Bailey wrote:
> I have a need to kick off a kermit script in ckermit, then, if I see a
> certain string pattern I need to go interactive (on the comm stream) and
> then switch back to the script when I recognize another string pattern.
> What I need to do is have a script run automatically but if the prompt for
> the user to change their password is seen, I need to take the session
> interactive (typical CONNECT scenario) and allow the user to change their
> password with the remote service, and then (ideally) when a "success"
> message is seen, resume the script and carry on. TERM (from Century
> Software) has a "TERMINAL" command that does just this. With HIPAA and
> healthcare, many services (insurance companies in particular) require unique
> userids and passwords and require they be changed on a pseudo-regular basis
> (30-45 days). Nothing consistent (of course!), so I need to have the script
> handle this. What we do with TERM (in another scenario - and TERM isn't an
> option for this situation) is start the TERM script and then when the login
> prompt is recognized, we use the TERMINAL command to switch the session
> interactive so that the user can login (and change the password should that
> pop up during any particular session). When the remote service main prompt
> is recognized, the TERM script resumes immediately after the TERMINAL
> command.
>
> Thanks!
>
> Mark
>
> ______________________________________________
> Mark J. Bailey Jobsoft Design and Development, Inc.
> 277 Wilson Pike Circle, Suite 105, Brentwood, TN 37027
> EMAIL: mjb@jobsoft.com WEB: http://www.jobsoft.com/
> Medimation / CardShot(tm) - http://www.medimation.com/
> 615-425-0932x20 FAX:615-425-0935 CELL:615-308-9099
>
> CONFIDENTIALITY NOTICE: This email message and any attachments are for the
> sole use of the intended recipient(s) and may contain proprietary,
> confidential, trade secret or privileged information. Any unauthorized
> review, use, disclosure or distribution is prohibited and may be a violation
> of law. If you are not the intended recipient or a person responsible for
> delivering this message to an intended recipient, please contact the sender
> by reply email and destroy all copies of the original message.
>
>
--
-----------------
This e-mail account is not read on a regular basis.
Please send private responses to jaltman at mit dot edu